package cn.com.lms.business.exam.persistence.repository;

import cn.com.lms.business.exam.persistence.entity.QuestionSubjectFile;

import com.bnzj.core.persistence.repository.BaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import javax.persistence.Transient;
import javax.transaction.Transactional;

@Repository
public interface QuestionSubjectFileRepository extends BaseRepository<QuestionSubjectFile,Long> {



    @Transactional
    @Modifying
    @Query(value = "delete from bnz_exam_question_subject_file where subject_id=?1", nativeQuery = true)
    public void deleteBySubjectId(Long subjectId);

}
